﻿using System;
using System.Text.RegularExpressions;

namespace Informant
{
	public static class ExtensionMethods
	{
		public static String FindMatchWithRegex(this String str, String regexPattern, Int32 groupIndex)
		{
			return Regex.Match(str, regexPattern).Groups[groupIndex].Value;
		}
	}
}
